import React from 'react';

import mirror , {
    render,
    Router,
    Route
} from 'mirrorx';

mirror.defaults({
    historyMode: 'hash'
});

//状态管理
import './state';

import routers from './router';

import Layout from "./components/Layout";

import Coat from "./components/Coat";

const App = () => (
    <Coat>
        <Router>
            <Layout>
                {routers}
            </Layout>
        </Router>
    </Coat>
);


render(
    <App /> ,
    document.getElementById("app")
);




